

/*
@font-face{
font-family:<font name>;
src:url(ABSPATH) format();
font-weight:
font-style:
}

导入网络字体。
 */
@font-face{
	font-family: 'Raphaelicons';
	src:url('../fonts/raphaelicons-webfont.eot') format('eot'),
		url('../fonts/raphaelicons-webfont.svg') format('svg'),
		url('../fonts/raphaelicons-webfont.ttf') format('truetype'),
	  	url('../fonts/raphaelicons-webfont.woff') format('woff');
		font-weight: normal;
		font-style: normal;
	}

body{
	font-family: Georgia,serif;
	background: #ddd;
	font-weight: 400;
	font-size: 15px;
	color: #333;
	overflow: hidden;
	/*font-smoothing:设置字体的抗锯齿或者光滑度要加内核
	一般用 antialiased(一般是对于英文)*/
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
}
a{
	text-decoration: none;
	color: #555;

}

/*清除浮动*/
.clr{
	width: 0;
	height: 0;
	overflow: hidden;
	clear: both;
	padding: 0;
	margin:0;
}
.st_container{
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	font-family: "Josefin Slab","Myriad Pro",Arial,sans-serif;
}

.st_container > input,.st_container > a{
	width: 20%;
	height: 44px;
	line-height: 44px;
	position: fixed;/*固定位置*/
	bottom: 0;
	cursor: pointer;/*手型光标*/
}

.st_container > input{
	/*
	元素不可见的方法
	 display: none;
	position: absolute;
	left: -99999px;
	visibility: hidden;
	opacity: 0;*/
	opacity: 0;/*透明度为0*/
	z-index: 1000;
}
.st_container > a{
	z-index: 10;
	font-weight: 700;
	font-size: 16px;
	background: #e23a6e;
	text-align: center;
	color: #fff;
	text-shadow: 1px 1px 1px rgba(151,24,64,0.2);
}
#st_control_1,#st_control_1 + a{
	left:0%;
}
#st_control_2,#st_control_2 + a{
	left:20%;
}
#st_control_3,#st_control_3 + a{
	left:40%;
}
#st_control_4,#st_control_4 + a{
	left:60%;
}
#st_control_5,#st_control_5 + a{/*后面的第一个A元素   如果是 ~ 表示是后面所有的元素*/
	left:80%;
}

.st_container input:checked + a,.st_container input:checked:hover + a{
	background: #821134;

}
.st_container input:checked + a:after{
	content:"";
	width: 0;
	height: 0;
	overflow: hidden;
	border: 20px solid transparent;
	border-bottom-color: #821134;
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -20px;
}
.st_container input:hover +a{
	background: #ad244f;
}

/*内容*/
.st_scroll,.st_panel{
	width: 100%;
	height: 100%;
	position: relative;
}
.st_scroll{
	left: 0;
	top: 0;
	/*使用transform:translate3d可以加速在手机中的处理速度 告诉浏览器初始位置是transform:translate3d（0,0,0,）
	分别代表X轴、Y轴、Z轴，然后点击，平移的位置才会生效。*/
	-webkit-transform: translate3d(0,0,0);
	-moz-transform: translate3d(0,0,0);
	-ms-transform: translate3d(0,0,0);
	-o-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	/*css3： backface-visibility
	功能：定义当前元素不面向屏幕是否可见
	语法规则：backface-visibility:visible|hidden
	取值说明：visible（背面可见） hidden（背面不可见）*/
	-webkit-backface-visibility:hidden;


	-webkit-transition:all 0.6s ease-in-out;
	-moz-transition:all 0.6s ease-in-out;
	-o-transition:all 0.6s ease-in-out;
	-ms-transition:all 0.6s ease-in-out;
	transition:all 0.6s ease-in-out;
}
.st_panel{
	overflow: hidden;
	background: #fff;
}
#st_control_1:checked ~ .st_scroll{
	-webkit-transform:translateY(0%);
	-moz-transform:translateY(0%);
	-o-transform:translateY(0%);
	-ms-transform:translateY(0%);
	transform:translateY(0%);
}
#st_control_2:checked ~ .st_scroll{
	-webkit-transform:translateY(-100%);
	-moz-transform:translateY(-100%);
	-o-transform:translateY(-100%);
	-ms-transform:translateY(-100%);
	transform:translateY(-100%);
}
#st_control_3:checked ~ .st_scroll{
	-webkit-transform:translateY(-200%);
	-moz-transform:translateY(-200%);
	-o-transform:translateY(-200%);
	-ms-transform:translateY(-200%);
	transform:translateY(-200%);
}
#st_control_4:checked ~ .st_scroll{
	-webkit-transform:translateY(-300%);
	-moz-transform:translateY(-300%);
	-o-transform:translateY(-300%);
	-ms-transform:translateY(-300%);
	transform:translateY(-300%);
}
#st_control_5:checked ~ .st_scroll{
	-webkit-transform:translateY(-400%);
	-moz-transform:translateY(-400%);
	-o-transform:translateY(-400%);
	-ms-transform:translateY(-400%);
	transform:translateY(-400%);
}
.st_desc{
	width: 200px;
	height: 200px;
	background: #fa96d5;
	position: absolute;
	left: 50%;
	top: 0;
	margin-left: -100px;

	/*
	把一个等边矩形旋转45度然后Y轴平移至旋转矩形的一半，另一半因为溢出隐藏，所以只能看到一半也就是个三角形的样子；
	正方形旋转45°、上移高度50%、溢出隐藏
	 */
	-webkit-transform:translateY(-50%) rotate(45deg);
	-moz-transform:translateY(-50%) rotate(45deg);
	-o-transform:translateY(-50%) rotate(45deg);
	-ms-transform:translateY(-50%) rotate(45deg);
	transform:translateY(-50%) rotate(45deg);
}
/*属性选择器*/
[data-icon]:after{
	content: attr(data-icon);
	width: 200px;
	height: 200px;
	color: #fff;
	font-size: 90px;
	text-align: center;
	line-height: 200px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -100px 0 0 -100px;
	-webkit-transform: rotate(-45deg)  translateY(25%);/*前后顺序也有一定的影响*/
	-moz-transform: rotate(-45deg)  translateY(25%);
	-o-transform: rotate(-45deg)  translateY(25%);
	-ms-transform: rotate(-45deg)  translateY(25%);
	transform: rotate(-45deg)  translateY(25%);
	font-family: "Raphaelicons";/*导入之后要使用*/
	text-shadow: 1px 1px 1px rgba(151,24,64,0.2);
	
}
.st_panel h2{
	color: #e23a6e;
	font-size: 54px;
	line-height: 50px;
	text-align: center;
	font-weight: 900;
	width: 80%;
	position: absolute;
	left: 10%;
	top: 50%;
	margin-top: -70px;
	text-shadow: 1px 1px 1px rgba(151,24,64,0.2);
	-webkit-backface-visibility:hidden;
}

#st_control_1:checked ~ .st_scroll #st_panel_1 h2,
#st_control_2:checked ~ .st_scroll #st_panel_2 h2,
#st_control_3:checked ~ .st_scroll #st_panel_3 h2,
#st_control_4:checked ~ .st_scroll #st_panel_4 h2,
#st_control_5:checked ~ .st_scroll #st_panel_5 h2{
	/*
	transition是需要事件去触发的，比如onclick或者hover等，但是animation
	是在页面载入的时候就直接可以调用了，不需要事件触发。
	 */
	/*backwards  动画播放之前处于开始状态*/
	-webkit-animation:moveDown 0.6s ease-in-out 0.2s backwards;
	-moz-animation:moveDown 0.6s ease-in-out 0.2s backwards;
	-o-animation:moveDown 0.6s ease-in-out 0.2s backwards;
	-ms-animation:moveDown 0.6s ease-in-out 0.2s backwards;
	animation:moveDown 0.6s ease-in-out 0.2s backwards;

}
@-webkit-keyframes moveDown{

	0%{
		-webkit-transform:translateY(-40px);
		opacity: 0;
	}
	100%{
		-webkit-transform:translateY(0px);
		opacity: 1;
	}

}
@-moz-keyframes moveDown{

	0%{
		-moz-transform:translateY(-40px);
		opacity: 0;
	}
	100%{
		-moz-transform:translateY(0px);
		opacity: 1;
	}

}

@-o-keyframes moveDown{

	0%{
		-o-transform:translateY(-40px);
		opacity: 0;
	}
	100%{
		-o-transform:translateY(0px);
		opacity: 1;
	}

}
@-ms-keyframes moveDown{

	0%{
		-ms-transform:translateY(-40px);
		opacity: 0;
	}
	100%{
		-ms-transform:translateY(0px);
		opacity: 1;
	}

}
@keyframes moveDown{

	0%{
		transform:translateY(-40px);
		opacity: 0;
	}
	100%{
		transform:translateY(0px);
		opacity: 1;
	}

}

.st_panel p{
	position: absolute;
	width: 90%;
	left: 25%;
	top: 50%;
	line-height: 22px;
	font-size: 16px;
	padding: 0;
	text-align: center;
	color: #8b8b8b;
	margin-top: 10px;
	-webkit-backface-visibility:hidden;
}
#st_control_1:checked ~ .st_scroll #st_panel_1 p,
#st_control_2:checked ~ .st_scroll #st_panel_2 p,
#st_control_3:checked ~ .st_scroll #st_panel_3 p,
#st_control_4:checked ~ .st_scroll #st_panel_4 p,
#st_control_5:checked ~ .st_scroll #st_panel_5 p{
	-webkit-animation:moveUp 0.6s ease-in-out 0.2s backwards;
	-moz-animation:moveUp 0.6s ease-in-out 0.2s backwards;
	-o-animation:moveUp 0.6s ease-in-out 0.2s backwards;
	-ms-animation:moveUp 0.6s ease-in-out 0.2s backwards;
	animation:moveUp 0.6s ease-in-out 0.2s backwards;

}
@-webkit-keyframes moveUp{
	0%{
		-webkit-transform:translateY(40px);
		opacity: 0;

	}
	100%{
		-webkit-transform:translateY(0px);
		opacity: 1;
	
	}
}
@-ms-keyframes moveUp{
	0%{
		-ms-transform:translateY(40px);
		opacity: 0;

	}
	100%{
		-ms-transform:translateY(0px);
		opacity: 1;ms
	
	}
}
@-moz-keyframes moveUp{
	0%{
		-moz-transform:translateY(40px);
		opacity: 0;

	}
	100%{
		-moz-transform:translateY(0px);
		opacity: 1;
	
	}
}
@-o-keyframes moveUp{
	0%{
		-o-transform:translateY(40px);
		opacity: 0;

	}
	100%{
		-o-transform:translateY(0px);
		opacity: 1;
	
	}
}
@keyframes moveUp{
	0%{
		-webkit-opacity: 0;

	}
	100%{
		transform:translateY(0px);
		opacity: 1;
	
	}
}
.st_color{
	background: #fa96b5;
}
.st_color .st_desc{
	background: #fff;
}
.st_color [data-icon]:after{
	color: #fa96b5;
}
.st_color h2{
	color: #fff;
	text-shadow: 12px 1px 1px rgba(0,0,0,0.1);
}
.st_color p{

	color:rgba(255,255,255,0.8);
}
/*屏幕自适应*/
@media screen and (max-width: 520px){
	.st_panel h2{
		font-size: 42px;

	}
	.st_panel p{
		width: 90%;
		left: 10%;
		margin-top: 0;

	}
	.st_container > a{
		font-size: 13px;
	}
}
@media screen and (max-width: 360px){
	.st_panel h2{
		font-size: 42px;

	}
	.st_panel p{
		width: 90%;
		left: 10%;
		margin-top: 0;

	}
	.st_container > a{
		font-size: 10px;
	}
	.st_desc{
		width: 120px;
		height: 120px;
		margin-left: -60px;
	}
	[data-icon]:after{
		font-size: 60px;
		-webkit-transform: rotate(-45deg)  translateY(15%);/*前后顺序也有一定的影响*/
		-moz-transform: rotate(-45deg)  translateY(15%);
		-o-transform: rotate(-45deg)  translateY(15%);
		-ms-transform: rotate(-45deg)  translateY(15%);
		transform: rotate(-45deg)  translateY(15%);
	}
}